// 写结构
<template>
  <el-container style="height: 100%">
    <!-- aside -->
    <el-aside style="width: auto">
      <Aside />
    </el-aside>

    <el-container>
      <!-- header -->
      <el-header>
        <Vheader />
      </el-header>
      <!-- main -->
      <el-main>
        <Vtags />
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Aside from "../src/components/Aside.vue";
import Vheader from "../src/components/Vheader.vue";
import Vtags from "../src/components/Vtags.vue";

export default {
  name: "Main",
  components: {
    Aside,
    Vheader,
    Vtags,
  },
};
</script>
<style lang="less">
html,
body {
  margin: 0;
  padding: 0;
}

.el-header {
  background-color: #333;
  color: #b3c0d1;
  text-align: center;
  line-height: 60px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  padding-top: 0;
  overflow: scroll;
  height: calc(100px - 60px);
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container {
  padding-top: 0;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  // text-align: center;
  line-height: 200px;
}
</style>